import os

os.chdir(r'D:\gitee_codes\transformer-learning\transformers-master\examples\text-generation')

cmd = 'python run_generation.py --model_type=gpt2 \
--model_name_or_path=D:/BaiduNetdiskDownload/预训练模型/Hugging_Face_Models/gpt2'
os.system(cmd)